package com.david.documentation.domain.dao.search;

import com.david.documentation.domain.dao.DAO;
import com.david.documentation.domain.entities.doku.Doku;

import java.util.List;

public interface SearchDao extends DAO<Doku>{

	List<Doku> findDokus(String searchTerms,Integer startIndex, Integer maxResults,String[] fieldsToMatch);

	List<Doku> findDokusByName(String searchTerms, Integer startIndex,Integer maxResults);

	List<Doku> findDokusByNameAndDescription(String searchTerms,Integer startIndex, Integer maxResults);

	List<String> findDokuNames(String searchTerms, Integer startIndex,Integer maxResults);

	List<Doku> findDokuNamesSql(String searchTerms);

	List<Doku> findDokuNamesSqlLimit(String searchterm,Integer startIndex,Integer maxResults);

	List<Doku> findDokuNamesAndDescriptionSql(String searchTerms);

	List<Doku> findDokuNamesAndDescriptionSqlLimit(String searchterm, Integer startIndex, Integer maxResults);

}
